package com.photoeditor.demo.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;

/**
 * Created by winn on 17/4/13.
 */
@Entity
public class FilterBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(autoincrement = true)
    private Long id;

    private String name;
    /**
     * 1、内置
     * 2、more
     * 3、下载
     */
    private int type;
    /**
     * 是否解锁：
     * 1已解锁
     * 0还没解锁
     */
    private int unLock;

    /**
     * 滤镜对应的颜色值
     */
    private int color;

    /**
     * 内置滤镜删除后，变成不可用，下载滤镜删除后，直接从sqlite删除
     * 状态：1、可用，  2、不可用
     */
    private int status;

    /**
     * Local排序，上下拖动使用
     */
    private int localIndex;

    /**
     * 内置、more使用名称，下载保存url地址
     */
    private String imageUrl;

    /**
     * 包名
     */
    private String packageName;


    private String downloadUrl;

    /**
     * 滤镜包大小
     */
    private String size;

    private String categoryId;

    /**
     * 保持在本机的路径
     */
    private String apkUri;


    private String moduleId;

    private String story;

    private String icon;

    private String preview;//滤镜浏览图，滤镜前后图片，#分割

    private String lastupdate;

    private int versionCode = 1;

    private String author;

    private String authorUrl;

    private int mCategoryPosition;

    private boolean mIsBuy;

    public FilterBean(String categoryId, String name, int type, int unLock, int color,
                      int status, int localIndex, String imageUrl, String packageName,
                      String downloadUrl, String size, String apkUri) {
        this.categoryId = categoryId;
        this.name = name;
        this.type = type;
        this.unLock = unLock;
        this.color = color;
        this.status = status;
        this.localIndex = localIndex;
        this.imageUrl = imageUrl;
        this.packageName = packageName;
        this.downloadUrl = downloadUrl;
        this.size = size;
        this.apkUri = apkUri;
    }

    @Generated(hash = 576455083)
    public FilterBean(Long id, String name, int type, int unLock, int color, int status, int localIndex,
            String imageUrl, String packageName, String downloadUrl, String size, String categoryId,
            String apkUri, String moduleId, String story, String icon, String preview,
            String lastupdate, int versionCode, String author, String authorUrl, int mCategoryPosition,
            boolean mIsBuy) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.unLock = unLock;
        this.color = color;
        this.status = status;
        this.localIndex = localIndex;
        this.imageUrl = imageUrl;
        this.packageName = packageName;
        this.downloadUrl = downloadUrl;
        this.size = size;
        this.categoryId = categoryId;
        this.apkUri = apkUri;
        this.moduleId = moduleId;
        this.story = story;
        this.icon = icon;
        this.preview = preview;
        this.lastupdate = lastupdate;
        this.versionCode = versionCode;
        this.author = author;
        this.authorUrl = authorUrl;
        this.mCategoryPosition = mCategoryPosition;
        this.mIsBuy = mIsBuy;
    }

    @Generated(hash = 1680608078)
    public FilterBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getUnLock() {
        return this.unLock;
    }

    public void setUnLock(int unLock) {
        this.unLock = unLock;
    }

    public int getColor() {
        return this.color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getLocalIndex() {
        return this.localIndex;
    }

    public void setLocalIndex(int localIndex) {
        this.localIndex = localIndex;
    }

    public String getImageUrl() {
        return this.imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getPackageName() {
        return this.packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }


    public String getDownloadUrl() {
        return this.downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getSize() {
        return this.size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getApkUri() {
        return this.apkUri;
    }

    public void setApkUri(String apkUri) {
        this.apkUri = apkUri;
    }

    public String getModuleId() {
        return this.moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getStory() {
        return this.story;
    }

    public void setStory(String story) {
        this.story = story;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPreview() {
        return this.preview;
    }

    public void setPreview(String preview) {
        this.preview = preview;
    }

    public String getLastupdate() {
        return this.lastupdate;
    }

    public void setLastupdate(String lastupdate) {
        this.lastupdate = lastupdate;
    }

    public int getVersionCode() {
        return this.versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthorUrl() {
        return this.authorUrl;
    }

    public void setAuthorUrl(String authorUrl) {
        this.authorUrl = authorUrl;
    }

    public String getCategoryId() {
        return this.categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public int getCategoryPosition() {
        return mCategoryPosition;
    }

    public void setCategoryPosition(int categoryPosition) {
        mCategoryPosition = categoryPosition;
    }

    public boolean isBuy() {
        return mIsBuy;
    }

    public void setBuy(boolean buy) {
        mIsBuy = buy;
    }

    public int getMCategoryPosition() {
        return this.mCategoryPosition;
    }

    public void setMCategoryPosition(int mCategoryPosition) {
        this.mCategoryPosition = mCategoryPosition;
    }

    public boolean getMIsBuy() {
        return this.mIsBuy;
    }

    public void setMIsBuy(boolean mIsBuy) {
        this.mIsBuy = mIsBuy;
    }

}